#pragma once

#include "XmlRpc.h"
#include "RemoteServer.h"
#include "Runnable.h"

class Client: public Runnable
{
public:
	Client(const ServerInfo &serverInfo);
	void sendTask(const std::string& task);
	TaskInfo getTaskInfo();
	void run();
	void start();
	~Client(void);
	static int recived;


protected:
	RemoteServer * remoteServer;	
	TaskInfo taskInfo;
	boost::thread *myThread;
};

